package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface WechatWarehouseListRestFeign {

    @GetMapping("/wechat/member/warehouselist/getwarehouse")
    String getWarehouse();

    @GetMapping("/wechat/member/warehouselist/addorderproductoutstock")
    String addOrderProductOutStock(@RequestParam("jsonObject")JSONObject jsonObject);

    @RequestMapping({"/wechat/member/warehouselist/queryproductbycode"})
    String queryProductByCode(@RequestParam("code")String code);

    @PostMapping("/wechat/member/warehouselist/addproductinstock")
    String addProductInStock(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("result")BindingResult result);

    @RequestMapping({"/wechat/member/warehouselist/ajaxwarehouselist"})
    String ajaxWarehouseList(@RequestParam("start")Integer start,@RequestParam("pageSize")Integer pageSize);

    @RequestMapping({"/wechat/member/warehouselist/warehousedetail"})
    String warehouseDetail(@RequestParam("wareId")Long wareId);

    @PostMapping(value = {"/wechat/member/warehouselist/addorderdeliveryrecord"})
    String addOrderDeliveryRecord(@RequestParam("jsonObject")JSONObject jsonObject, @RequestParam("result")BindingResult result);

    @PostMapping(value = {"/wechat/member/warehouselist/orderonceoutstock"})
    String orderOnceOutStock(@RequestParam("jsonObject")JSONObject jsonObject);

    @PostMapping(value = {"/wechat/member/warehouselist/sendorderproductoutstock"})
    String sendorderproductoutstock(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("result") BindingResult result);

    @PostMapping(value = {"/wechat/member/warehouselist/querybatchdeliveryproductstock"})
    String queryBatchDeliveryProductStock(@RequestParam("warehouseId")Long warehouseId, @RequestParam("orderId")String orderId);

    @PostMapping(value = {"/wechat/member/warehouselist/addorderbatchdelivery"})
    String addOrderBatchDelivery(@RequestParam("jsonObject")JSONObject jsonObject, @RequestParam("result")BindingResult result);

    @PostMapping(value = {"/wechat/member/warehouselist/batchdeliverylist"})
    String batchDeliveryList(@RequestParam("start")Integer start,@RequestParam("pageSize")Integer pageSize);

    @GetMapping(value = {"/wechat/member/warehouselist/batchdeliverydetail"})
    String batchDeliveryDetail(@RequestParam("jsonObject")JSONObject jsonObject);

    @PostMapping(value = {"/wechat/member/warehouselist/receiptorder"})
    String receiptOrder(@RequestParam("jsonObject")JSONObject jsonObject);

    @GetMapping(value = {"/wechat/member/warehouselist/sellerdeliverylist"})
    String sellerDeliveryList(@RequestParam("jsonObject")JSONObject jsonObject);

}
